package com.yqg.protection.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yqg.protection.cover.LocalDateTimeConverter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * record_equipment_operate 实体类
 *
 * @author 小宇
 * @since 2024-09-13
 */
@Getter
@Setter
@TableName("record_equipment_operate")
@ApiModel(value = "RecordEquipmentOperate对象", description = "设施操作记录")
public class RecordEquipmentOperate implements Serializable {

    private static final long serialVersionUID = 1L;

    @ExcelProperty(value = "ID", index = 0)
    @ApiModelProperty("自增id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ExcelProperty(value = "单位ID", index = 1)
    @ApiModelProperty("单位id")
    private Long clientId;

    @ExcelProperty(value = "单位名称", index = 2)
    @TableField(exist = false)
    @ApiModelProperty("单位名称")
    private String clientName;

    @ExcelProperty(value = "设备编号", index = 3)
    @ApiModelProperty("设备编号")
    private String equuipmentNo;

    @ExcelProperty(value = "系统类型", index = 4)
    @ApiModelProperty("系统类型")
    private String systemType;

    @ExcelProperty(value = "系统地址", index = 5)
    @ApiModelProperty("系统地址")
    private String systemAddress;

    @ExcelProperty(value = "操作类型", index = 6)
    @ApiModelProperty("操作类型")
    private String operateType;

    @ExcelProperty(value = "操作人", index = 7)
    @ApiModelProperty("操作人")
    private String operateName;

    @ExcelProperty(value = "操作时间", index = 8, converter = LocalDateTimeConverter.class)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty("操作时间")
    private LocalDateTime dataTime;

    @ExcelProperty(value = "操作内容", index = 9)
    @ApiModelProperty("操作内容")
    private String content;

    @ExcelIgnore
    private Integer isDelete;
}
